/**
 * Created by 王健 on 2019-12-10.
 */
$(function () {

    var html_data = {
        baseConfig: baseConfig,
        sessionid: '',
        sessionid_q: '',
        userinfo:{tel:""},
        tongji:{},
        default_address: null,
        selected_address_id: parseInt(GetQueryString('address_id')),
        payorder_id: parseInt(GetQueryString("payorder_id")),
        address_list: []

    };
    var app = new Vue({
        el: '#user_info',
        data: html_data,
        methods: {
            price_filter: price_filter,

            save_alipay:function(){
                api.lorder.tongji_order_and_price_by_buyer({start_time: html_data.userinfo.start_time, end_time:html_data.userinfo.end_time}).then(function (value) {
                    html_data.tongji = value.result;
                })

            },

            page_back: function () {
                baseConfig.page_back();
            }
        }
    });

    html_data.sessionid = GetQueryString('sessionid');
    if (html_data.sessionid) {
        html_data.sessionid_q = "sessionid=" + html_data.sessionid;
        client_storage('sessionid', html_data.sessionid);
    }



});
